package nuike;

/**
 * Created with IntelliJ IDEA.
 * ClassName: Test01
 * Package: nuike
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-20
 * Time: 18:15
 */

public class Test01 {

    private static void test(int[] arr){
        for (int i = 0; i < arr.length; i++) {
            try {
                if (arr[i] % 2 ==0){
                    throw new NullPointerException();
                }else {
                    System.out.println(i);
                }
            }finally {
                System.out.println("e");
            }
        }
    }

    public static void main(String[] args) {
        try{
            test(new int[]{0,1,2,3,4,5});
        }catch (Exception e){
            System.out.println("E");
        }
    }

}
